disable right click javascript

42

how to disable right click in javascript -

// for disabling right click use this as it is 
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()

disable right click javascript -

document.addEventListener('contextmenu', event => event.preventDefault());

disable right click javascript -

document.addEventListener('contextmenu', event => event.preventDefault());

Comments

Submit
0 Comments